package com.woniuxy.service;

import java.util.List;
import java.util.Map;

import com.woniuxy.pojo.FindRoom;
import com.woniuxy.pojo.Room;
import com.woniuxy.pojo.RoomType;
import com.woniuxy.pojo.RoomType_dgy;
import com.woniuxy.pojo.Room_dgy;
import com.woniuxy.pojo.Room_yyh;

public interface RoomService {

	List<Room> findByType(String roomType);
	
	//显示所有房间
	List<Room_yyh> getAll();
	
	//更改房间属性
	int updateR(Room room);
	
	//删除房间
	int deleteR(int rid);
	
	//添加房间
	int insertR(Room room);
	//根据房间类型和服务查询对应房间
	List<Room> findTypeandfw();
	//查询房间
	public List<Room> findStudents(FindRoom findRoom);
	//查询类型个数
	public Map<Integer, Integer>  findRoomCount();


	
	List<Room> findByState(String rstate);

	List<RoomType> showType();

	int insertR(RoomType roomType);

	List<Room_yyh> selectR(String message);


	Room_dgy findById(int rid);

	List<Room_dgy> findRoom(String checkIn, String checkOut);

	int updateRoomState(Room_dgy room);

	List<Room_dgy> findByType1(RoomType_dgy roomType);

	Room_dgy findone(int rid);
	
}
